package com.cti.commons.mqtt.repository.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import com.cti.commons.mqtt.repository.MqttReceiveMessageLog;
import com.cti.commons.mqtt.repository.MqttReceiveMessageRepository;

/**
 * @author et.wang
 * @description:
 * @date 2022/11/23 09:47
 */
@Service
public class MqttReceiveMessageRepositoryImpl implements MqttReceiveMessageRepository {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void save(MqttReceiveMessageLog log) {
        mongoTemplate.save(log);
    }

}
